package tuding.android.bigplanettracks.util;

import android.os.Bundle;

public class Task implements Runnable {
    // Task running variables.
    private int m_id;
    private Bundle m_bundle;
    private TaskRunner m_taskRunner;

    public Task(int id, Bundle bundle, TaskRunner taskRunner) {
        this.m_id = id;
        this.m_bundle = bundle;
        this.m_taskRunner = taskRunner;
    }

    public void run() {
        m_taskRunner.runTask(m_id, m_bundle);
    }
}